
package com.bonc.common.security.service;

import com.bonc.common.security.dao.UiResourceDao2;
import com.bonc.common.security.entity.UiResource;

import java.util.*;

import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author song
 */
@Service
@Transactional
public class UiResourceServiceImpl2 implements UiResourceService2{
    
    
    @Autowired
    private UiResourceDao2 uiResourceDao;

    
    /**
     * @return the uiResourceDao
     */
    public UiResourceDao2 getUiResourceDao() {
        return uiResourceDao;
    }

    /**
     * @param uiResourceDao the uiResourceDao to set
     */
    public void setUiResourceDao(UiResourceDao2 uiResourceDao) {
        this.uiResourceDao = uiResourceDao;
    }

    public UiResource create(UiResource uiResource) {
        
 
          
    
         return   getUiResourceDao().save(uiResource);
    
    }

    @Override
    public List<UiResource> getAccessedUiResource(String loginId) {
      
          return this.uiResourceDao.getAccessedUiResource(loginId);
    
    }

    

    

    
}
